package com.guigu.tms.commons.work.feign;

import com.guigu.tms.commons.entity.work.TaskPickupDispatch;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

@FeignClient(value = "tms-work",path = "/work/taskPickupDispatch",contextId = "taskPickupDispatch")
public interface TaskPickupDispatchFeign {
    @RequestMapping("/selectByCourierId")
    List<TaskPickupDispatch> selectByCourierId(@RequestParam("CourierId") String CourierId);
    @RequestMapping("outPickUp")
    String outPickUp(@RequestBody TaskPickupDispatch taskPickupDispatch);
    @RequestMapping("accptPickUp")
    String accptPickUp(@RequestBody TaskPickupDispatch taskPickupDispatch);
    @RequestMapping("PickupCompleted")
    String PickupCompleted(@RequestBody TaskPickupDispatch taskPickupDispatch);
    @RequestMapping("Warehousing")
    String Warehousing(@RequestBody TaskPickupDispatch taskPickupDispatch);
    @RequestMapping("Handover")
    String Handover(TaskPickupDispatch taskPickupDispatch);
    @RequestMapping("ConfirmDelivery")
    String ConfirmDelivery(TaskPickupDispatch taskPickupDispatch);
    @RequestMapping("VerifyPickCode")
    Boolean VerifyPickCode(Map<String, String> params);
}
